<?php /*
<!-- h2 stays for breadcrumbs -->
<h2 class="h2bread"><a href="#">Dashboard</a> &raquo; <a href="#" class="active">Print resources</a></h2>
*/ ?>

<div id="main">
  <?php if($num_rows > 0){ ?>
  <?php
  $properties = array(
      'name' => 'btn_add',
      'id' => 'btn_add',
      'class' => 'button-submit',
      'maxlength' => 200,
      'tabindex' => 1,
      'value' => 'Add',
      'onclick' => 'javascript: redirect_page(\''.  site_url($cur_c.'/add').'\');'
  );
  __e(inputbox($properties, true));
  ?>
  <form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  <?php $this->load->view('admin_messages',$msg_info); ?>
  <h3><?php echo $cont_title; ?></h3>
  <table width="100%" class="tables_sample1 mytables" id="myTable">
    <thead>
      <tr>
        <th align="left" width="5%">&nbsp;</th>
        <th align="left" width="5%">ID</th>
        <th align="left" width="35%">Title</th>
        <th align="left" width="12%">Status</th>
        <th align="left" width="15%">Action</th>
      </tr>
    </thead>
    <tbody>
<?php foreach ($list as $key => $val){ ?>

      <tr class="trbottomhr pane">
        <td align="left" valign="top"><input type="checkbox" class="chk" name="chk_id[]" id="chk_id_<?php __e($val['os_editor_id']);?>" value="<?php __e($val['os_editor_id']);?>"/></td>        
        <td align="left" valign="top"><?php __e($val['os_editor_id']);?></td>
        <td align="left" valign="top"><?php __e($val['os_editor_name']);?></td>        
        <td align="left" valign="top"><?php if($val['os_editor_status'] == 1){__e('Active');}else{__e('Inactive');};?></td>        
        <td align="left" valign="top" class="action">
          <a href="#" class="view">View</a>
          <a href="<?php __e(site_url($cur_c. '/edit/'. $val['os_editor_id']));?>" class="edit">Edit</a>
          <a href="#" class="delete">Delete</a>
        </td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
    
<?php }/*</foreach ($list as $key => $val)>*/ ?>
      
</tbody>
    <tfoot>
      <tr>
        <td colspan="10" align="right">Bulk Action 
          <select class="ftsel">
            <option value="">Please select</option>
            <option value="">Active</option>
            <option value="">Inactive</option>
            <option value="">Delete</option>
          </select>
        </td>
      </tr>
    </tfoot>
  </table>
</form>

<?php }else{ /*</else:if($num_rows > 0)>*/ ?>
<h3><?php __e(LIST_NO_DATA_MSG);?></h3>	

<?php
$properties = array('name' => 'btn_red','id' => 'btn_red','class' => 'genbtnbox','maxlength' => 200,'tabindex' => 1,
    'value' => 'Back to listing','onclick' => 'javascript: redirect_page(\''.  site_url($cur_c).'\');'
);__e(inputbox($properties, true));
?>

<?php
$properties = array('name' => 'btn_add','id' => 'btn_add','class' => 'genbtnbox','maxlength' => 200, 'tabindex' => 1,
    'value' => 'Add','onclick' => 'javascript: redirect_page(\''.  site_url($cur_c.'/add').'\');'
);__e(inputbox($properties, true));
?>

<?php }/*</if($num_rows > 0)>*/ ?>
</div>